package com.bw.service.impl;

import com.bw.entity.Word;
import com.bw.mapper.WordMapper;
import com.bw.service.WordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;
@Service
public class WordServiceImpl implements WordService {

    @Autowired
    private WordMapper wordMapper;
    @Override
    public void addWord(Word word) {
        wordMapper.addWord(word);
    }

    @Override
    public void addMid(Map map) {
        wordMapper.addMid(map);
    }

    @Override
    public Word checkWord(String word) {

        return wordMapper.checkWord(word);
    }
}
